package Parkour;

import javax.swing.ImageIcon;
import javax.swing.JFrame;
public class GameFrame extends JFrame {

    public static final int WIDTH=1500;
    public static final int HEIGHT=900;
    public GameFrame() {

        GamePanel panel = new GamePanel();
        panel.action();
        this.addKeyListener(panel);
        this.add(panel);

        this.setSize(WIDTH,HEIGHT);
        this.setLocationRelativeTo(null);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setIconImage(new ImageIcon("images/parkour/115.png").getImage());
        this.setUndecorated(true);
        this.setVisible(true);
    }

    public static void main(String[] args) {
        new GameFrame();
    }

    }
